package org.csu.mypetstore.persistence;

import org.csu.mypetstore.domain.Account;
import org.csu.mypetstore.domain.Order;
import org.csu.mypetstore.domain.Product;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OrderMapper {
    List<Order> orderList();
    void updateOrder (Order order);
    void updateAccount(Account account);
    void send (String name);
    List<Product> getProductListByOrderId(String orderId);
    String getProductIdByItemId(String itemId);
    String getCategoryIdByProductId(String productId);
    String getUserIdByOrderId(String orderId);
    List<Order> searchOrderByAddr(String addr);
    List<Order> searchOrderByUser(String userId);
    List<Order> searchOrderByBoth(String addr, String userId);
    void deleteOrders (String orderId);
    void deleteOrderstatus (String orderId);
    void deleteLineItem (String orderId);
}
